package com.cns.android.gateway;

import com.cns.android.gateway.IGatewaySystemCallback;

/**
 * {@hide}
 */

interface IGatewaySystemService {
    const String SERVICE_NAME = "gateway_system_service";

    const String APP_ONLINEMUSIC = "onlinemusic";
    const String APP_ONLINERADIO = "onlineradio";
    /*
    * 出厂设置Media为online music.
    * 打开music或radio后记持久化录当前打开的app
    * 再次调用media后,读取记录并打开相应的app
    */
    const String APP_ONLINEMEDIA = "onlinemedia";
    const String APP_WEATHER = "weather";

    //开启log
    void beginLog();

    //关闭log
    void endLog();

    //距离传感器
    void onProximitySensorChanged(float value);

    //ambient light color接口
    void onAmbientLightColorChanged(boolean sRGBOnOff,String sRGBcolor,boolean hmiOnOff,String hmiColor);


//		//注册回调
    void registerGatewaySystemCallbackCallback(IGatewaySystemCallback callback);
    	//解除注册
    void unregisterGatewaySystemCallbackCallback(IGatewaySystemCallback callback);

    /**
    *   action  需要打開的Android app
    *   isFullScreen 是否全屏
    */
    void openAndroidApp(String action,boolean isFullScreen);


    /**
    *
    *   action 需要关闭的Android app
    */
    void closeAndroidApp(String action);

    /**
    *   status 获取当前开启状态
    */
    int getCurrentStartUpStatus();
}
